package com.gitee.gen.gen;

/**
 * 统一类型枚举
 *
 * @author tanghc
 */
public enum TypeEnum {

    BIT("bit"),

    BOOLEAN("boolean"),

    TINYINT("tinyint"),
    SMALLINT("smallint"),
    INT("int"),
    BIGINT("bigint"),

    FLOAT("float"),
    DOUBLE("double"),
    NUMERIC("numeric"),
    DECIMAL("decimal"),

    CHAR("char"),
    VARCHAR("varchar"),
    LONGVARCHAR("longvarchar"),
    TEXT("text"),
    MEDIUMTEXT("mediumtext"),
    LONGTEXT("longtext"),
    JSON("json"),

    DATETIME("datetime"),
    TIME("time"),
    DATE("date"),
    TIMESTAMP("timestamp"),

    BLOB("blob"),

    JSONB("jsonb")

    ;

   
    // BINARY              byte[]  
    // VARBINARY           byte[]  
    // LONGVARBINARY       byte[]  
    // CLOB                Clob  
    // BLOB                Blob  
    // ARRAY               Array  
    // DISTINCT            mapping of underlying type  
    // STRUCT              Struct  



    private final String type;

    TypeEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }
}
